import request from '@/utils/request'

// 结算接口:
export function settlement(data) {
	return request({
		url: '/api/order/settlement',
		method: 'post',
		data

	})
}

// 支付宝结算接口:
export function alipayOrder(data) {
	return request({
		url: '/api/pay/alipay/createOrder',
		method: 'post',
		data

	})
}

// 查询支付宝支付订单状态接口:
export function queryAlipay(params) {
	return request({
		url: '/api/pay/alipay/queryOrder',
		params

	})
}

// 微信结算接口:
export function wxpayOrder(data) {
	return request({
		url: '/api/pay/wxpay/createOrder',
		method: 'post',
		data

	})
}

// 查询微信支付订单状态接口:
export function queryWxpay(params) {
	return request({
		url: '/api/pay/wxpay/queryOrder',
		params

	})
}